import request from '@/utils/request'

// 查询ETC门架区间数据测试列表
export function listEtcGantryTreeTest(query) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/list',
    method: 'get',
    params: query
  })
}

// 查询ETC门架区间数据测试详细
export function getEtcGantryTreeTest(id) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/' + id,
    method: 'get'
  })
}

// 新增ETC门架区间数据测试
export function addEtcGantryTreeTest(data) {
  return request({
    url: '/functiontest/EtcGantryTreeTest',
    method: 'post',
    data: data
  })
}

// 修改ETC门架区间数据测试
export function updateEtcGantryTreeTest(data) {
  return request({
    url: '/functiontest/EtcGantryTreeTest',
    method: 'put',
    data: data
  })
}

// 删除ETC门架区间数据测试
export function delEtcGantryTreeTest(id) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/' + id,
    method: 'delete'
  })
}

// 导出ETC门架区间数据测试
export function exportEtcGantryTreeTest(query) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入ETC门架区间数据测试
export function importEtcGantryTreeTest(data) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateEtcGantryTreeTest() {
  return request({
    url: '/functiontest/EtcGantryTreeTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditEtcGantryTreeTestBatch() {
  return request({
    url: '/functiontest/EtcGantryTreeTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditEtcGantryTreeTestBatch(data) {
  return request({
    url: '/functiontest/EtcGantryTreeTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditEtcGantryTreeTestBatch() {
  return request({
    url: '/functiontest/EtcGantryTreeTest/centerAudit/batch',
    method: 'post'
  })
}

// 同步数据到正式表
export function syncToEtcGantryTree() {
  return request({
    url: '/functiontest/EtcGantryTreeTest/syncToEtcGantryTree',
    method: 'post'
  })
}
